package lsf.itcast.service;

import lsf.itcast.domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

//4.继承了security中的接口
public interface UserService extends UserDetailsService {
    //查询所有用户
    List<UserInfo> findAll();
    //查询用户详情
    UserInfo findById(String id);

    //保存用户
    void save(UserInfo userInfo);

    void addRoleToUser(String userId, String[] ids);
}
